x11: Fix shadows
authorMatthias Clasen <mclasen@redhat.com>
Sat, 24 Apr 2021 13:16:42 +0000 (09:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 24 Apr 2021 13:19:18 +0000 (09:19 -0400)
Commit a2cd21cab663a003 changed a condition and inadvertedly
broke client-side shadows on X11. Change this back.

Fixes: #3896
gtk/gtkwindow.c

index abc6aa1582bab30b58654beeb8d13fd0e5e7c8f6..a21e7205c86d06d56ee09c5cb2363afa9d3021f2 100644 (file)
@@ -4005,7 +4005,7 @@ get_shadow_width (GtkWindow *window,
   if (!priv->decorated)
     goto out;
 
-  if (!priv->client_decorated ||
+  if (!priv->client_decorated &&
       !(gtk_window_should_use_csd (window) &&
         gtk_window_supports_client_shadow (window)))
     goto out;